MODSIGN: Make shash allocation failure fatal
authorBen Hutchings <ben@decadent.org.uk>
Sun, 5 May 2019 12:45:06 +0000 (13:45 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 28 Sep 2021 04:29:40 +0000 (05:29 +0100)
commit226ad28922202cea4e42ec7b4950b77e1a0d4187
tree1e2542e67db35ab47fe6762365ca3cfa8aa974cd
parente222c474a011fd8d22da1dfa1eb40d919e178421
MODSIGN: Make shash allocation failure fatal

mod_is_hash_blacklisted() currently returns 0 (suceess) if
crypto_alloc_shash() fails.  This should instead be a fatal error,
so unwrap and pass up the error code.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/all/db-mok-keyring
Gbp-Pq: Name modsign-make-shash-allocation-failure-fatal.patch
kernel/module_signing.c